package com.alib.springcloud.sentinelResourceBlock;

import com.alib.springcloud.entities.CommonResult;
import com.alibaba.csp.sentinel.slots.block.BlockException;

public class BlockHandler {

    public static CommonResult handleException(BlockException exception){
        return new CommonResult(2020,"自定义的限流处理信息.....");
    }

    public static String handleException2(BlockException exception){
        return "自定义限流处理信息... xxx ";
    }
}
